/*
 *  Copyright (C) 2009 Dominik Psenner
 * 
 *   This file is part of WebDAV4JD.
 *
 *  WebDAV4JD is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  WebDAV4JD is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with project-blog.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package com.lab9.webdav4jd.api;

import com.lab9.webdav4jd.api.properties.NodeType;
import com.lab9.webdav4jd.api.properties.Status;


/**
 * a node represents a version-controlled resource.
 * 
 * @author dominik
 * 
 */
public interface Node {
	
	/**
	 * retrieves the revision name of this node. Commonly it is a big numeric. This numeric identifies uniquely each revision.
	 * 
	 * @return
	 */
	public long getRevision();
	
	/**
	 * retrieves the node type of this node.
	 * 
	 * @return
	 */
	public NodeType getNodeType();
	
	/**
	 * retrieves the required property comment.
	 * 
	 * @return
	 */
	public String getComment();
	
	/**
	 * retrieves the required property creator-displayname.
	 * 
	 * @return
	 */
	public String getCreator();
	
	/**
	 * retrieves the computed status for this resource.
	 * 
	 * @return
	 */
	public Status getStatus();
	
}
